<!--// Google Maps custom template //-->

<div id="Canvas">

  <!--// Header //-->
  <div class="region region-top">
    <div class="region-content">

      <div class="mod mod-top">
        <div class="content">
          <!-- AddThis Button BEGIN -->
          <div class="addthis_toolbox addthis_default_style ">
          <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
          <a class="addthis_button_tweet"></a>
          <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
          <a class="addthis_counter addthis_pill_style"></a>
          </div>
          <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ee4f6440fe80b20"></script>
          <!-- AddThis Button END -->
        </div>
      </div>

      <div class="mod mod-header">
        <div class="content">
          <div class="banner-link"><a href="<?php echo $base_path; ?>" style="position:absolute; width:100%; height:100%; z-index: 1"></a></div>
          <div class="mod-header-left"></div>
          <div class="mod-header-right"></div>
          <h1><a href="/">Victorious ones - Jain Images of Perfection</a></h1>
          <?php print render($page['header']); ?>
        </div>
      </div>

      <div class="mod mod-nav">
        <div class="content">
          <?php if ($main_menu): ?>
            <?php print theme('links__system_main_menu', array(
              'links' => $main_menu,
              'attributes' => array(
                'id' => 'main-menu-links',
                'class' => array('links', 'clearfix'),
              ),
              'heading' => array(
                'text' => t('Main menu'),
                'level' => 'h2',
                'class' => array('element-invisible'),
              ),
            )); ?>
          <?php endif; ?>
          <form action="<?php echo $base_path; ?>/search/node/" accept-charset="UTF-8" method="get" class="search-form">
            <fieldset>
              <fieldset class="inline">
                <input type="text" class="form-text input-text" name="search" value="" />
              </fieldset>
              <fieldset class="inline">
                <input type="submit" value="Search" class="input-button form-submit" name="op" />
              </fieldset>
            </fieldset>
          </form>
        </div>
      </div> <!--// mod-nav //-->

      <?php if ($messages): ?>
        <div id="messages"><div class="section clearfix">
          <?php print $messages; ?>
        </div></div> <!-- /.section, /#messages -->
      <?php endif; ?>
    </div><!--// region-content //-->
  </div><!--// region-top //-->

  <?php if ($page['featured']): ?>
    <div id="featured"><div class="section clearfix">
      <?php print render($page['featured']); ?>
    </div></div> <!-- /.section, /#featured -->
  <?php endif; ?>

  <?php if ($tabs): ?>
    <div class="tabs tabs-editorial">
      <?php print render($tabs); ?>
    </div>
  <?php endif; ?>
  <a name="map"></a>
  <div id="main-wrapper" class="clearfix"><div id="main" class="clearfix">

    <?php if ($breadcrumb): ?>
      <div id="breadcrumb"><?php print $breadcrumb; ?></div>
    <?php endif; ?>

    <div id="content" class="column"><div class="section">
      <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
      <a id="main-content"></a>

      <?php print $feed_icons; ?>

      <div class="region region-full">
        <div class="region-content">
          <?php print $google_map; // @see template.php ?>
        </div>
      </div>  <!--// Region Full //-->

      <div class="region region-full">
        <div class="region-content">

          <div class="region region-half">
            <div class="region-content region-content-left">

              <!--// Article Teaser Module //-->
              <div class="mod mod-teaser">
                <div class="content">
                  <h2>Jain Monuments List</h2>

                  <?php $count=0; ?>
                  <?php foreach($page['jain_monuments_list']->result as $row) : ?>
                    <?php $monument = $row->_field_data['nid']['entity']; ?>
                    <p>
                      <strong><?php print $monument->title; ?></strong><br />

                      <?php print str_replace('&nbsp;', ' ', strip_tags( $monument->body['und'][0]['value'] ) ); ?><br />

                      <a href="#top" class="map-marker" data-index="<?php print $count; ?>"><strong>View in Map</strong></a>
                    </p>
                  <?php $count++; ?>
                  <?php endforeach; ?>

                </div>
              </div>

            </div>
          </div>

          <div class="region region-half">
            <div class="region-content">

              <!--// Module: Related Articles //-->
              <div class="mod mod-related-articles">
                <div class="content">
                  <h3>Related Objects</h3>
                  <ul>
                    <?php foreach($page['related_objects']->result as $row) : ?>
                      <li><a href="<?php print url('node/' . $row->nid); ?>"><?php print $row->node_title; ?></a></li>
                    <?php endforeach; ?>
                  </ul>
                  <a href="#" class="more">more >></a>
                </div>
              </div>

              <!--// Module: Related Objects //-->
              <div class="mod mod-related-objects">
                <div class="content">
                  <h3>Related Objects</h3>
                  <ul class="list-thumbs">
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="54" height="54" /></a></li>
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="54" height="54" /></a></li>
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="54" height="54" /></a></li>
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="54" height="54" /></a></li>
                  </ul>
                  <ul>
                    <li><a href="#">General Default Nav Channel Article</a></li>
                    <li><a href="#">General Default Nav Channel Article Much Longer link</a></li>
                    <li><a href="#">General Small Article</a></li>
                    <li><a href="#">General Default Nav Channel</a></li>
                  </ul>
                  <a href="#" class="more">more >></a>
                </div>
              </div>

              <!--// Module: Related Objects //-->
              <div class="mod mod-banners">
                <div class="content">
                  <ul class="list-thumbs">
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="198" height="198" /></a></li>
                    <li><a href="#"><img src="<?php echo $base_path . $theme_path; ?>/images/tmp/pixel.gif" width="198" height="198" /></a></li>
                  </ul>
                </div>
              </div>

            </div>
          </div>

        </div>
      </div>  <!--// Region Full //-->

    </div></div> <!-- /.section, /#content -->


  </div></div> <!-- /#main, /#main-wrapper -->

  <?php if ($page['triptych_first'] || $page['triptych_middle'] || $page['triptych_last']): ?>
    <div id="triptych-wrapper"><div id="triptych" class="clearfix">
      <?php print render($page['triptych_first']); ?>
      <?php print render($page['triptych_middle']); ?>
      <?php print render($page['triptych_last']); ?>
    </div></div> <!-- /#triptych, /#triptych-wrapper -->
  <?php endif; ?>

  <div id="footer-wrapper"><div class="section">

    <?php if ($page['footer_firstcolumn'] || $page['footer_secondcolumn'] || $page['footer_thirdcolumn'] || $page['footer_fourthcolumn']): ?>
      <div id="footer-columns" class="clearfix">
        <?php print render($page['footer_firstcolumn']); ?>
        <?php print render($page['footer_secondcolumn']); ?>
        <?php print render($page['footer_thirdcolumn']); ?>
        <?php print render($page['footer_fourthcolumn']); ?>
      </div> <!-- /#footer-columns -->
    <?php endif; ?>

    <?php if ($page['footer']): ?>
      <div id="footer" class="clearfix">
        <?php print render($page['footer']); ?>
      </div> <!-- /#footer -->
    <?php endif; ?>
  </div></div> <!-- /.section, /#footer-wrapper -->

</div>
